<?php include view('header');?>

<h1>自定义设置</h1>
<form action="system.php?action=config" method="post">
<table>
	<tr><th><label>首页余额提醒：</label></th><td>当项目余额不足<input type="text" id="home_unusedratio" name="home_unusedratio" value="<?php echo $_G['setting']['home_unusedratio'];?>" />%时提示</td></tr>
	<tr><th><label>首页到期提醒：</label></th><td>离结题期限不足<input type="text" id="home_deadlinelimit" name="home_deadlinelimit" value="<?php echo $_G['setting']['home_deadlinelimit'];?>" />天时提示</td></tr>
</table>
<button type="submit">修改配置</button>
	
<h1>系统配置</h1>
<table>
	<tr><th><label>系统样式：</label></th><td><?php echo Tpl::select('style', $styles, $_G['style']);?></td></tr>
	<tr><th><label>时区设置：</label></th><td><input type="text" id="timezone" name="timezone" value="<?php echo $_G['setting']['timezone'];?>" /></td></tr>
	<tr><th><label>时间修正：</label></th><td><input type="text" id="timefix" name="timefix" value="<?php echo $_G['setting']['timefix'];?>" /></td></tr>
	<tr><th><label>Cookie前缀：</label></th><td><input type="text" id="cookiepre" name="cookiepre" value="<?php echo $_G['setting']['cookiepre'];?>" /></td></tr>
	<tr><th><label>编码设置：</label></th><td><input type="text" id="charset" name="charset" value="<?php echo $_G['setting']['charset'];?>" /></td></tr>
</table>
<button type="submit">修改配置</button>

</form>

<?php include view('footer');?>